﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 继承_base
{

	//Person作为父类
	class Person
	{
		public Person()
		{

		}
		public Person(string name, int age, char gender)
		{
			Name = name;
			Age = age;
			Gender = gender;
		}
		private string _name;
		private int _age;
		private char _gender;

		public string Name { get => _name; set => _name = value; }
		public int Age { get => _age; set => _age = value; }
		public char Gender { get => _gender; set => _gender = value; }

		public void CHLSS()
		{
			Console.WriteLine("吃喝拉撒睡");
		}
		public void SayHello()
		{
			Console.WriteLine("hello");
		}
	}
}
